/*
 * FXGL - JavaFX Game Library. The MIT License (MIT).
 * Copyright (c) AlmasB (almaslvl@gmail.com).
 * See LICENSE for details.
 */

package com.windea.study.kotlin.fxgl.sample.misc

import com.almasb.fxgl.app.*
import com.almasb.fxgl.dsl.*
import javafx.scene.input.*

/**
 *
 * @author Almas Baimagambetov (AlmasB) (almaslvl@gmail.com)
 */
class NotificationSample : GameApplication() {
	override fun initSettings(settings: GameSettings) {}
	
	override fun initInput() {
		onKeyDown(KeyCode.F, "Notify") {
			getNotificationService().pushNotification("Hello! " + FXGL.random(1, 10000))
		}
	}
}

fun main(args: Array<String>) {
	GameApplication.launch(NotificationSample::class.java, args)
}
